import request from "@/utils/request";

/**
 * 获取通知消息
 * @param data
 * @returns {*}
 */
export function getNoticeList(params) {
  return request({
    url: "/adminapi/v1.notice.NoticeOther",
    method: "get",
    params,
  });
}


/**
 * 添加消息
 * @param data
 * @returns {*}
 */
export function addNotice(data) {
  return request({
    url: "/adminapi/v1.notice.NoticeOther/create",
    method: "post",
    data,
  });
}

/**
 * 删除消息
 * @param data
 * @returns {*}
 */
export function deleteNotice(data) {
  return request({
    url: "/adminapi/v1.notice.NoticeOther/delete",
    method: "post",
    data,
  });
}
/**
 * 更新消息
 * @param data
 * @returns {*}
 */
export function updateNotice(data) {
  return request({
    url: "/adminapi/v1.notice.NoticeOther/update",
    method: "post",
    data,
  });
}

/**
 * 搜索消息
 * @param data
 * @returns {*}
 */
export function searchNotice(data) {
  return request({
    url: "/adminapi/v1.notice.NoticeOther/search",
    method: "post",
    data,
  });
}
